package org.jimmy.tang.designpattern.behavior.observer;

/**
 * @author jimmy
 * 
 */
public class TianHePoliceman implements Policeman {

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.behavior.observer.Policeman#action(org.jimmy.tang.designpattern.behavior.observer.Citizen)
     */
    @Override
    public void action(Citizen ci) {
        String help = ci.getHelp();
        if (help.equals("normal")) {
            System.out.println("TianHe Policeman, no action.");
        }
        if (help.equals("unnormal")) {
            System.out.println("TianHe Policeman, take action.");
        }

    }

}
